<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox-content">
					<form class="form-horizontal m-t" id="signupForm">
						<input id="drugId" th:value="${drug.drugId}" name="drugId" type="hidden">
						<input id="drugClassCode" th:value="${drug.drugClassCode}" name="drugClassCode" type="hidden">
						<input id="drugClassName" th:value="${drug.drugClassName}" name="drugClassName" type="hidden">
							<div class="form-group">
								<label class="col-sm-3 control-label">药品姓名：</label>
								<div class="col-sm-8">
									<input id="drugName" th:value="${drug.drugName}" name="drugName" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">药品别称：</label>
								<div class="col-sm-8">
									<input id="drugAlias" th:value="${drug.drugAlias}" name="drugAlias" class="form-control"
										type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">规格：</label>
								<div class="col-sm-8">
									<input id="spec" th:value="${drug.spec}" name="spec" class="form-control"
										type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">价格：</label>
								<div class="col-sm-8">
									<input id="price" th:value="${drug.price}" name="price" class="form-control"
										type="number">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">药品所属分类：</label>
								<div class="col-sm-8">
									<div id="menuTree"></div>
								</div>
							</div> 
							<div class="form-group">
								<label class="col-sm-3 control-label">成分：</label>
								<div class="col-sm-8">
									<input id="component" th:value="${drug.component}" name="component" class="form-control"
										type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">性状：</label>
								<div class="col-sm-8">
									<input id="properties" th:value="${drug.properties}" name="properties" class="form-control"
										type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">功能主治：</label>
								<div class="col-sm-8">
									<input id="functions" th:value="${drug.functions}" name="functions" class="form-control"
										type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">禁忌：</label>
								<div class="col-sm-8">
									<input id="taboo" th:value="${drug.taboo}" name="taboo" class="form-control"
										type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">注意事项：</label>
								<div class="col-sm-8">
									<input id="attention" th:value="${drug.attention}" name="attention" class="form-control"
										type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">相互作用：</label>
								<div class="col-sm-8">
									<input id="drugInteraction" th:value="${drug.drugInteraction}" name="drugInteraction" class="form-control"
										type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">生产厂家：</label>
								<div class="col-sm-8">
									<input id="producerName" th:value="${drug.producerName}" name="producerName" class="form-control"
										type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">用法用量：</label>
								<div class="col-sm-8">
									<input id="usages" th:value="${drug.usages}" name="usages" class="form-control"
										type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">不良反应：</label>
								<div class="col-sm-8">
									<input id="adverseReaction" th:value="${drug.adverseReaction}" name="adverseReaction" class="form-control"
										type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">包装：</label>
								<div class="col-sm-8">
									<input id="packing" th:value="${drug.packing}" name="packing" class="form-control"
										type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">贮藏：</label>
								<div class="col-sm-8">
									<input id="storages" th:value="${drug.storages}" name="storages" class="form-control"
										type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">有效期：</label>
								<div class="col-sm-8">
									<input id="validityTerm" th:value="${drug.validityTerm}" name="validityTerm" class="form-control"
										type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">条码：</label>
								<div class="col-sm-8">
									<input id="barCode" th:value="${drug.barCode}" name="barCode" class="form-control"
										type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">批准文号：</label>
								<div class="col-sm-8">
									<input id="approvalNumber" th:value="${drug.approvalNumber}" name="approvalNumber" class="form-control"
										type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">说明书：</label>
								<div class="col-sm-8">
									<input id="instructions" th:value="${drug.instructions}" name="instructions" class="form-control"
										type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">备注：</label>
								<div class="col-sm-8">
									<input id="remarks" th:value="${drug.remarks}" name="remarks" class="form-control"
										type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">是否含麻:</label>
								<div class="col-sm-8">
									<label class="radio-inline"> <input type="radio"
										th:field="*{drug.isHemp}" name="isHemp" value="1" /> 是
									</label> <label class="radio-inline"> <input type="radio"
										th:field="*{drug.isHemp}" name="isHemp" value="0" /> 否
									</label>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">是否处方药:</label>
								<div class="col-sm-8">
									<label class="radio-inline"> <input type="radio"
										th:field="*{drug.isRecipe}" name="isRecipe" value="1" /> 是
									</label> <label class="radio-inline"> <input type="radio"
										th:field="*{drug.isRecipe}" name="isRecipe" value="0" /> 否
									</label>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">状态:</label>
								<div class="col-sm-8">
									<label class="radio-inline"> <input type="radio"
										th:field="*{drug.flag}" name="flag" value="1" /> 启用
									</label> <label class="radio-inline"> <input type="radio"
										th:field="*{drug.flag}" name="flag" value="0" /> 禁用
									</label>
								</div>
							</div>
							
							<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
								</div>
							</div>
					</form>
				</div>
			</div>
		</div>
	</div>
	<div th:include="include::footer"></div>
	<script type="text/javascript" src="/js/appjs/drugproducer/drug/edit.js"">
	</script>
</body>
</html>
